import '@antv/x6-vue-shape'
import TextComponent from '../../../components/Text'

export default function () {
  return this.createNode({
    // shape: 'rect',
    shape: 'vue-shape',
    attrs: {
      body: {
        ref: 'text',
        refWidth: 16,
        refHeight: 16,
        // refX: -8,
        // refY: -8,
        stroke: 'none',
        fill: 'none'
      }
    },
    component: {
      template: '<text-component></text-component>',
      data() {
        return {}
      },
      methods: {},
      components: {
        TextComponent
      }
    }
  })
}
